package cn.tsinghua.comsmacitccntsinghua.HHMessage;

/**
 * @Author yjl
 * @create 2021/9/30 11:30
 */

//hardware Http
interface HHMessageFactory {
    public HHMessage createHHMessage();
}


class WeightHHMessageFactory implements HHMessageFactory{

    @Override
    public HHMessage createHHMessage() {
        WeightHHMessage weightHHMessage = new WeightHHMessage();
        return weightHHMessage;
    }
}

class MouthStatusHHMessageFactory implements HHMessageFactory{
    @Override
    public HHMessage createHHMessage() {
        MouthStatusHHMessage mouthStatusHHMessage = new MouthStatusHHMessage();
        return mouthStatusHHMessage;
    }
}

class WarnHHMessageFactory implements HHMessageFactory{

    @Override
    public HHMessage createHHMessage() {
        WarnHHMessage warnHHMessage = new WarnHHMessage();
        return warnHHMessage;
    }
}

class MortorStatusHHMessageFactory implements HHMessageFactory{

    @Override
    public HHMessage createHHMessage() {
        MortorHHMessage mortorHHMessage = new MortorHHMessage();
        return mortorHHMessage;
    }
}
















